package com.smart.manager.pop.entities.views;

import com.smart.common.entities.core.BaseView;
import io.ebean.annotation.View;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import java.math.BigDecimal;

/**
 * 系统-模块管理
 *
 * @author Xiaxuqiu
 */

@Data
@Entity
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@View(name = "pop_dis_inviter")
public class InviterView extends BaseView {

    @Id
    private Long id;

    @ApiModelProperty(value = "头像地址")
    private String avatar;

    @ApiModelProperty(value = "分销员手机")
    private String phone;

    @ApiModelProperty(value = "分销员姓名")
    private String name;

    @ApiModelProperty("微信名称")
    private String realName;   //==

    @ApiModelProperty(value = "累计佣金")
    private BigDecimal amountCont;

    @ApiModelProperty(value = "当前等级")
    @ManyToOne
    @JoinColumn(name = "level", referencedColumnName = "id")
    private DisLevelView level;

    @ApiModelProperty("提现二维码")
    private String qrPay;

}